.class public final Lorg/microemu/Injected;
.super Ljava/lang/Object;
.source "Injected.java"

# interfaces
.implements Ljava/io/Serializable;


# static fields
.field static class$org$microemu$Injected:Ljava/lang/Class; = null

.field public static final err:Ljava/io/PrintStream; = null

.field public static final out:Ljava/io/PrintStream; = null

.field private static final serialVersionUID:J = -0x1L


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 56
    invoke-static {}, Lorg/microemu/Injected;->outPrintStream()Ljava/io/PrintStream;

    move-result-object v0

    sput-object v0, Lorg/microemu/Injected;->out:Ljava/io/PrintStream;

    .line 58
    invoke-static {}, Lorg/microemu/Injected;->errPrintStream()Ljava/io/PrintStream;

    move-result-object v0

    sput-object v0, Lorg/microemu/Injected;->err:Ljava/io/PrintStream;

    .line 61
    sget-object v0, Lorg/microemu/Injected;->class$org$microemu$Injected:Ljava/lang/Class;

    if-nez v0, :cond_0

    const-string v0, "org.microemu.Injected"

    invoke-static {v0}, Lorg/microemu/Injected;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    sput-object v0, Lorg/microemu/Injected;->class$org$microemu$Injected:Ljava/lang/Class;

    :goto_0
    invoke-static {v0}, Lorg/microemu/log/Logger;->addLogOrigin(Ljava/lang/Class;)V

    .line 62
    return-void

    .line 61
    :cond_0
    sget-object v0, Lorg/microemu/Injected;->class$org$microemu$Injected:Ljava/lang/Class;

    goto :goto_0
.end method

.method private constructor <init>()V
    .locals 0

    .prologue
    .line 67
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 69
    return-void
.end method

.method static class$(Ljava/lang/String;)Ljava/lang/Class;
    .locals 2
    .parameter "x0"

    .prologue
    .line 61
    :try_start_0
    invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
    :try_end_0
    .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v1

    return-object v1

    :catch_0
    move-exception v0

    .local v0, x1:Ljava/lang/ClassNotFoundException;
    new-instance v1, Ljava/lang/NoClassDefFoundError;

    invoke-direct {v1}, Ljava/lang/NoClassDefFoundError;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/NoClassDefFoundError;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    move-result-object v1

    throw v1
.end method

.method private static errPrintStream()Ljava/io/PrintStream;
    .locals 1

    .prologue
    .line 78
    sget-object v0, Lorg/microemu/app/util/MIDletOutputStreamRedirector;->err:Ljava/io/PrintStream;

    return-object v0
.end method

.method public static getProperty(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter "key"

    .prologue
    .line 96
    invoke-static {p0}, Lorg/microemu/app/util/MIDletSystemProperties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static getResourceAsStream(Ljava/lang/Class;Ljava/lang/String;)Ljava/io/InputStream;
    .locals 1
    .parameter "origClass"
    .parameter "name"

    .prologue
    .line 113
    invoke-static {p0, p1}, Lorg/microemu/app/util/MIDletResourceLoader;->getResourceAsStream(Ljava/lang/Class;Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    return-object v0
.end method

.method public static handleCatchThrowable(Ljava/lang/Throwable;)Ljava/lang/Throwable;
    .locals 1
    .parameter "t"

    .prologue
    .line 120
    const-string v0, "MIDlet caught"

    invoke-static {v0, p0}, Lorg/microemu/log/Logger;->error(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 121
    return-object p0
.end method

.method private static outPrintStream()Ljava/io/PrintStream;
    .locals 1

    .prologue
    .line 73
    sget-object v0, Lorg/microemu/app/util/MIDletOutputStreamRedirector;->out:Ljava/io/PrintStream;

    return-object v0
.end method

.method public static printStackTrace(Ljava/lang/Throwable;)V
    .locals 1
    .parameter "t"

    .prologue
    .line 85
    const-string v0, "MIDlet caught"

    invoke-static {v0, p0}, Lorg/microemu/log/Logger;->error(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 86
    return-void
.end method
